npm install --registry=https://registry.npm.taobao.org

# npm install

unset ENV
set -x

ENV=test

if [[ "$APP_ENV" == "test" ]]; then
   ENV=test
elif [[ "$APP_ENV" == "prod" ]]; then
   ENV=prod
fi

export ENV

echo 'output ENV='$ENV
npm run build